<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <a href="#/music">音乐</a>
    <a href="#/download">下载</a>

    <button class="reload">刷新页面</button>

    <script>
        // href属性 （重点）得到完整的地址，赋值则是跳转到新地址
        console.log(location.href);

        console.log(location.search); //得到？后面的地址


    </script>
</body>

</html>